Home:ALL Converter>How to write a linear regression with an expanding window in R (no packages)

How to write a linear regression with an expanding window in R (no packages)

Ask Time:2020-02-24T01:14:31         Author:mar

Json Formatter

How do you set up a linear regression with an expanding window in R without using packages?

What is the best way to set up a for loop so that the regression is done first with 30 days of data, then 31 days, then 32, etc?

Author:mar,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/60364756/how-to-write-a-linear-regression-with-an-expanding-window-in-r-no-packages
yy